package com.yykj.user.center.server.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yykj.common.util.serializer.LocalDate2LongSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.time.LocalDateTime;

/**
 * @author chenl
 * @version 1.0
 * @date 2021/10/30 21:48
 */
//评价表
@Data
@Entity
public class Evaluation {

    @Id
    @Column(length = 32)
    private String id;

    /*@ApiModelProperty("患者ID")
    @Column(length = 32)
    private String patientId;*/

    @ApiModelProperty("医生ID")
    @Column(length = 32)
    private String doctorId;

    @ApiModelProperty("评分")
    private Integer score=0;

    @ApiModelProperty("评论")
    @Column(columnDefinition="TEXT")
    private String comment;

    @ApiModelProperty("创建时间")
    @JsonSerialize(using = LocalDate2LongSerializer.class)
    @CreationTimestamp
    private LocalDateTime addTime;

    @ApiModelProperty("更新时间")
    @JsonSerialize(using = LocalDate2LongSerializer.class)
    @UpdateTimestamp
    private LocalDateTime modifyTime;

    private Boolean state=true;

    @ApiModelProperty("患者姓名")
    private String patientName;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("问诊Id")
    private String consultationId;

    @ApiModelProperty("订单类型：11、图文问诊 12、语音问诊 13、视频问诊 14、检查订单 15、检验订单")
    private Integer orderType;

    @ApiModelProperty("订单号")
    private String orderNo;

    private String deptName;

    private String doctorName;

    private Integer hospitalId;

}
